package com.hua.springCloud.servicer;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "CLOUD-PROVIDER-HYSITRY-PAYMENT8001",fallback = PaymentServiceImpl.class)
@Service
public interface PaymentService {

    @GetMapping("/getInfo/test")
    public String getInfoTest();

    @GetMapping("/getInfoTimeOut/test")
    public String getInfoTimeOut();

    @GetMapping("/paymentTest/{id}")
    public String getPayCount(@PathVariable("id")int id);
}
